﻿@model Janus.Mes.VO.SysConfigVO

@{
    Layout = null;
    var i = 1;
    ViewBag.ViewTitle = "新增-首件检验时机";
}
<div class="pageContent">
    <form method="post" action="System/SysConfig/create?OpID=@ViewData["OperateID"]" class="pageForm required-validate"
          onsubmit="return validateCallback(this, dialogAjaxDone);">
        @Html.ValidationSummary(true)
        <div class="pageFormContent" layouth="56">
            <input id="hidIsCreate" name="hidIsCreate" type="hidden" value="@ViewBag.IsCreate" />
            @Html.HiddenFor(model => model.Id)
            <p>
                <label>
                    时机编号：
                </label>

                @if (ViewBag.IsCreate == true)
                {
                    @Html.TextBoxFor(sysConfig => sysConfig.Key, new { @class = "required IsExisted", ajaxurl = "System/SysConfig/IsExist" })
                }
                else
                {
                    @Html.TextBoxFor(sysConfig => sysConfig.Key, new { @Readonly = "true" })
                }
                @Html.ValidationMessageFor(sysConfig => sysConfig.Key)
            </p>
            <p>
                <label>
                    时机名称：
                </label>
                @Html.TextBoxFor(sysConfig =>sysConfig.Title, new { @class = "required" })
                @Html.ValidationMessageFor(sysConfig => sysConfig.Title)
            </p>
            <p>
                <label>
                    停机重启检验：
                </label>
                @*@Html.CheckBoxFor(sysConfig =>Convert.ToBoolean(sysConfig.Title), new { @class = "required" })*@
                <input type="checkbox" name="c1" value="1" />
                @Html.ValidationMessageFor(sysConfig => sysConfig.Title)
            </p>
            <p>
                <label>
                    停机时间：
                </label>
                <input name="code" class="digits textInput valid" type="text" size="15" alt="请输入数字" id="code_3869">
                <label class="alt" for="code_3869" style="width: 206px; top: 5px; left: 130px; opacity: 1;">请输入数字</label>
                @*<div class="combox">*@
                @*<div id="combox1" class="select">*@
                @*<a href="javascript" class="required" name="type" value="小时">小时</a>*@
                <select id="select1" name="type" class="required">
                    <option value="小时">小时</option>
                    <option value="分钟">分钟</option>
                </select>
                @*</div>*@
                @*</div>*@
            </p>
            <p>
                <label>
                    备注：
                </label>
                @Html.TextBoxFor(sysConfig =>sysConfig.Title, new { @class = "required" })
                @Html.ValidationMessageFor(sysConfig => sysConfig.Title)
            </p>
            @Html.Partial("Operation", Model)
        </div>
        @Html.Partial("FormButtonBar")
    </form>
</div>
